From: Matthias Clasen Date: Fri, 1 Nov 2019 17:33:15 +0000 (-0400) Subject: reftests: Print out a helpful error X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~662^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=34d002121dd59d85baeb1682a4044dcc7c95643a;p=gtk4.git reftests: Print out a helpful error When module loading fails, print out the error. --- diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index 231ff722e2..04e6c23fbd 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -194,7 +194,7 @@ connect_signals (GtkBuilder *builder, module = reftest_module_new (directory, split[0]); if (module == NULL) { - g_error ("Could not load module '%s' from '%s' when looking up '%s'", split[0], directory, handler_name); + g_error ("Could not load module '%s' from '%s' when looking up '%s': %s", split[0], directory, handler_name, g_module_error ()); return; } func = reftest_module_lookup (module, split[1]);